/* 
 * File:   form_spatial_smoothing_filters.h
 * Author: dima
 *
 * Created on 6 Февраль 2015 г., 14:41
 */

#ifndef _FORM_SPATIAL_SMOOTHING_FILTERS_H
#define	_FORM_SPATIAL_SMOOTHING_FILTERS_H
#include <QDialog>
namespace Ui
{
class form_spatial_smoothing_filters;
}
namespace ipd
{
class ipd_smoothing_spatial_filter;
class ipd_median_filter;
class ipd_img;
}

class form_spatial_smoothing_filters : public QDialog
{
    Q_OBJECT
public:
    form_spatial_smoothing_filters(ipd::ipd_img& image);
    virtual ~form_spatial_smoothing_filters();
    inline ipd::ipd_img * get_convertible_image();
private slots:
    void convert_image();
    void slider_move(int pos);
signals:
    void send_image(ipd::ipd_img &img);
private:
    void delete_filter(); // delete filter
    ipd::ipd_img &original_image;
    ipd::ipd_img *convertible_image;
    Ui::form_spatial_smoothing_filters *widget;
    ipd::ipd_smoothing_spatial_filter *filter;
    ipd::ipd_median_filter *median_filter;
};

ipd::ipd_img* form_spatial_smoothing_filters::get_convertible_image()
{
    return convertible_image;
}
#endif	/* _FORM_SPATIAL_SMOOTHING_FILTERS_H */
